class CreateOrders < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
      t.integer  :user_id
      t.integer :shop_id
      t.string :status
      t.decimal:product_sum_price,:precision=>8,:scale=>2
      t.integer :transport_id
      t.string :transport_type
      t.decimal:order_price_sum,:precision=>8,:scale=>2

      t.timestamps
    end
  end

  def self.down
    drop_table :orders
  end
end
